package com.sistema.vendas.principal;

import javax.swing.JFrame;

import com.sistema.vendas.iu.TelaPrincipal;

public class Principal {

	private TelaPrincipal principal;
	
	public void mostrarPrincipal() {
		
		if (principal == null) {
			
			principal = new TelaPrincipal();
			principal.setVisible(true);
			principal.setLocation(400, 300);
			
		} else {
			
			principal.setVisible(true);
			principal.setLocation(400, 300);
			principal.setState(JFrame.NORMAL);
			
		}
		
	}
	
	public static void main(String[] args) {
		
		Principal p = new Principal();
		p.mostrarPrincipal();
		
	}
	
}
